package com.exmaple.cdc.listener;

import java.util.Map;

/*
 * @className: DbListener
 * @author: chentao
 * @date: 2025/3/7 下午5:35
 * @Version: 1.0
 * @description:
 */
public interface CDCMessageListener {

    public static final String ID = "id";

    public static final String MODEL_ID = "model_id";

    public static final String MODEL_NAME = "model_name";

    public static final String CONTEXT = "context";

    public static final String STATUS = "status";

    public static final String RETRY_COUNT = "retry_count";

    public static final String RETRY_TIME = "retry_time";

    public static final String SUCCESS = "1";

    public static final String INIT = "0";

    public static final String ERROR = "2";

    public void onMessage(Object binlogObj) throws Exception;

    public void failHandler(Map<String, Object> map) throws Exception;
}
